package com.rts.controller;

import com.rts.common.CommonResult;
import com.rts.service.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author:weizhang
 * @date: 2020-03-31
 * @modify:
 * @des: 用户
 */
@Controller
@Slf4j
@RequestMapping(value = "/userInfo/")
public class UserController {

    @Autowired
    private UserInfoService userInfoService;

    @ResponseBody
    @GetMapping(value = "/getUserList")
    public CommonResult getUserList(){

        log.info("[getUserList] 获取用户列表");
        return userInfoService.getList();

    }

}
